#!/bin/bash

HOST=http://update.gonsincloud.com
CURRENT_PATH=${PWD}
cd ~
mkdir .artemis_environment
cd .artemis_environment

ACTIVEMQ_PATH=${PWD}
cp -rf ${CURRENT_PATH}/* ./

# download tar.gz files
wget -nc ${HOST}/docker/apache-artemis-2.28.0-bin.tar.gz apache-artemis-2.28.0-bin.tar.gz
wget -nc ${HOST}/docker/jdk-11.0.18_linux-x64_bin.tar.gz jdk-11.0.18_linux-x64_bin.tar.gz
docker-compose down -v
docker-compose build
docker-compose up -d